package com.mht2017.common.exception;

public class RestAPIException extends IncSyncException {

	public RestAPIException() {

	}

	public RestAPIException(String msg) {
		super(msg);
	}

	public RestAPIException(String resource, String action, String errorCode, String msg, Object errorData) {
		super(msg);
		this.resource = resource;
		this.action = action;
		this.errorCode = errorCode;
		this.errorData = errorData;

	}

	private static final long serialVersionUID = 1L;

	private String resource;
	private String action;
	private String errorCode;
	private Object errorData;

	public String getResource() {
		return resource;
	}

	public void setResource(String resource) {
		this.resource = resource;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public Object getErrorData() {
		return errorData;
	}

	public void setErrorData(Object errorData) {
		this.errorData = errorData;
	}
}
